package com.baizhi.pojo;

public class Person {
    private Integer id;
    private String name;
    private Integer age;
    private String address;

    private Dog dog;
    private Cat c;

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setDog(Dog dog) {
        this.dog = dog;
    }

    public void setC(Cat c) {
        this.c = c;
    }

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", address='" + address + '\'' +
                ", dog=" + dog +
                ", c=" + c +
                '}';
    }
}
